package com.mjkj.demo.model.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author XuDoom
 * @date 2023/3/20 10:05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="LoginReq对象", description="用户登录req表")
public class LoginReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户账号")
    @NotBlank(message = "账号不能为空")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
    @ApiModelProperty(value = "登陆类型（前台默认为0，后台为1）")
    private Integer type = 0;

}
